Speed up writing strings a bit

Avoid boxing due to pointer instability. This branch is now beating
Base.serialize by >2x on the test case from
JuliaStats/DataFrames.jl#667