Move unescape_string to util/string.cpp, update escape_string()