encoding problems fixed