BUG: Should return unicode not string.
ENH: Allow encoding for unicode.
Merge pull request #1983 from jseabold/fix-compat

BUG: Fix compat asunicode