Corrected case of Document#characterSet

Resolves #4251
Use .clone() instead of.as_slice().to_string()
auto merge of #4265 : ProgramFOX/servo/issue-4251, r=Ms2ger

Resolves #4251