it's odd to jump into nycr here. Could this utility function be moved to 'base/string_utils.h'.

I believe however we can use the new std::quoted in C++14 (http://en.cppreference.com/w/cpp/io/manip/quoted)