trying to fix encoding bug... but can`t