Added support for reading and writing strings.
Added value type constraint to Write<T>.