fix encoding issues in tests #2