FIX: unicode IO

addresses and closes #1026.