Preserve character encoding for strings.