This works. Encoding decoding problem is gone away