[common] rewire to/from string

using c++11 string conversion for special cases avoids icpc 14 bugs