LPS-39567 Avoid char[] copying and add fast path for ascii code.