working on encoding/decoding db correctly

if blob is marked raw, treat it as raw byte string. otherwise
treat the blob as a utf-8 string.
fixed improper usage of iconv function
convert queries to utf8 before preparing statement
display raw entries differently

display printable characters normally and escape unprintables
using the \xNN format
properly print query characters with curses wide character routines