Fix converting when "from" and "to" encoding are same