Bug 871462 - Clean up string API usages on Gonk. r=dbaron