hotfix, encoding problem
fix for encoding bug, needs refactoring