try to encode