fixes encoding issue