replace str roundtrip with something more sensible