Fix string conversion bug

This was a bug found by a storm user @twitter.