Ruby string-methods reference.
Returns the Encoding object that represents the character encoding of the string.