PG::SimpleEncoder
This is the encoder class for the PostgreSQL text types.
Non-String values are expected to have method to_s defined.
to_s