Add a encoding parameter for readline

Cleaned up pull request of #129 by @crenovator and @genedna.

Optionally allows setting of alternative Buffer encodings besides UTF-8.
Add comment listing available encodings.
Merge pull request #190 from fhemberger/patch-1

Cleanup of PR #129: Add a encoding parameter for readline