Utf8String shouldn't be used here.  There is no way to URI encode a non ASCII character, and std::string is by convention in RTBkit always ASCII.  You can just operate on Ascii directly.