I solved the problem by replacing destination.write() to destination.writeString() in the encoding function.
But... thanks for providing help :)
I solved the problem by replacing destination.write() to destination.writeString() in the encoding function.
But... thanks for providing help :)