Fix issue #219. Just log to rdm's stderr instead.
Make encode() return a String.
Remove logging.
Remove -DNDEBUG by default when indexing.
Merge remote branch 'refs/remotes/upstream/master'