Fix unicode errors in bash.
Make things work for py3.
Merge pull request #39 from alexcouper/37_fix_unicode

Fix unicode errors in bash.