string::arrayBufferToOctets: fix phantomjs part 2