Fixes encoding