Fix unicode decode bug