Ensure arguments to database functions aren't unicode