Modified quote_attrib and quote_xml binding methods to handle
encoded strings.
* Assumes that the string has been encoded as
  bindings.ExternalEncoding.
* Returns a string encoded as ExternalEncoding
* Added unit tests to check this behavior.