Add XML examples to Character Encoding section, fix some grammar errors