Fix minor ascii codec issue when the source value is unicode