feat(set): use OneTimeStringIO to build request

StringBuilder in pypy and cStringIO in py27.