make PlainTextParser serializable

make PlainTextParser serializable