Fixed encoding when loading dictionary