fixes #204 object to string

Let me know if you want me to add some unit tests for this case.