utf8 check

this looks like a race condition.. does set allow passing a callback?