trying to fix encoding problems