Read / Write fixes

Correct encoding problems
Now, can fully use this API.