Document has Encoder can be used for parsing strings instead of bytes.