Resolved problem with encoding