Make write work for strings, and various other string-related updates