[sohu] Handle encoding, and fix tests