[Fixed] string entity using local codepage for serialization without conversion

made content request codepage independent
StringEntity was using local codepage as default
the string is serialized and kept to the document encoding if specified
content encoding is preserved in the entity