Fixes bug on as_text/to_text method on RGeo/Charta objects