fix encoding errors
low level api expects type str not unicode
write log in home directory, not in /tmp
prep for 0.1.3 release