fix encoding problems