Replace deprecated fromValue with encodeToTextBuilder
Merge pull request #7 from chrismwendt/fix/deprecated-encodeToTextBuilder

Replace deprecated fromValue with encodeToTextBuilder (fix #6)