Fixed encoding bug.