Fix error on non-ascii characters in docstrings

Fix for issue #211: 'Non-ascii characters in docstrings trigger unicode
error'. Use _get_encoding to encode docs in show_doc.
Use _get_encoding for other instances of encode
Merge pull request #219 from alvinfrancis/unicode

Use _get_encoding for encoding docstrings and messages