Fix length computation for TXT
Add tests for TXT record serialization
Merge pull request #42 from yalp/FixTxtLen

Fix length computation for TXT and a testcase.