sanitize configuration values on read or write

* trims trailing whitespace or newline characters
Merge pull request #90 from lcowell/sanitize-config

sanitize configuration values on read or write