Fixed problem with encoding