change logging to use print, hopefully gets automatic encoding detection