feat(set): use OStringStream to build request

StringBuilder in pypy and cStringIO in py27.