Solved encoding problem