Corrected case of Document#characterSet

Resolves #4251