fails:String#encode raises UndefinedConversionError if the String contains characters invalid for the target     encoding
fails:String#encode replaces invalid characters
fails:String#encode replaces xml characters
fails:String#encode replaces xml characters and quotes the result
fails:String#encode! raises UndefinedConversionError if the String contains characters invalid for the target     encoding
fails:String#encode! replaces invalid characters
fails:String#encode! replaces xml characters
fails:String#encode! replaces xml characters and quotes the result
java1.5:String#encode raises an Encoding::InvalidByteSequenceError for invalid byte sequences
java1.5:String#encode! raises an Encoding::InvalidByteSequenceError for invalid byte sequences
fails:String#encode raises an Encoding::InvalidByteSequenceError for invalid byte sequences
fails:String#encode replaces undefined characters
fails:String#encode! raises an Encoding::InvalidByteSequenceError for invalid byte sequences
fails:String#encode! replaces undefined characters
fails:String#encode raises ArgumentError if the value of the :xml option is not :text or :attr
fails:String#encode given the :xml => :text option replaces all instances of '&' with '&amp;'
fails:String#encode given the :xml => :text option replaces all instances of '<' with '&lt;'
fails:String#encode given the :xml => :text option replaces all instances of '>' with '&gt;'
fails:String#encode given the :xml => :text option replaces undefined characters with their upper-case hexadecimal numeric character references
fails:String#encode given the :xml => :attr option surrounds the encoded text with double-quotes
fails:String#encode given the :xml => :attr option replaces all instances of '&' with '&amp;'
fails:String#encode given the :xml => :attr option replaces all instances of '<' with '&lt;'
fails:String#encode given the :xml => :attr option replaces all instances of '>' with '&gt;'
fails:String#encode given the :xml => :attr option replaces all instances of '"' with '&quot;'
fails:String#encode given the :xml => :attr option replaces undefined characters with their upper-case hexadecimal numeric character references
fails:String#encode! raises ArgumentError if the value of the :xml option is not :text or :attr
fails:String#encode! given the :xml => :text option replaces all instances of '&' with '&amp;'
fails:String#encode! given the :xml => :text option replaces all instances of '<' with '&lt;'
fails:String#encode! given the :xml => :text option replaces all instances of '>' with '&gt;'
fails:String#encode! given the :xml => :text option replaces undefined characters with their upper-case hexadecimal numeric character references
fails:String#encode! given the :xml => :attr option surrounds the encoded text with double-quotes
fails:String#encode! given the :xml => :attr option replaces all instances of '&' with '&amp;'
fails:String#encode! given the :xml => :attr option replaces all instances of '<' with '&lt;'
fails:String#encode! given the :xml => :attr option replaces all instances of '>' with '&gt;'
fails:String#encode! given the :xml => :attr option replaces all instances of '"' with '&quot;'
fails:String#encode! given the :xml => :attr option replaces undefined characters with their upper-case hexadecimal numeric character references
