fix codec utf bug