Encoding problems solved