Refactor WriteChars() and WriteBytes() into simple wrappers of a common
routine Write().
Simplification and cleanup enabled by last commit.