made 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
Merge pull request #1414 from LorenzoBoccaccia/master

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