Correctly calculate offset in writeVString, fixes #20