bz19815: convert filenames to unicode before passing them to sqlite.