Added a test in LargeDocument for charset encoding