Fixed bug in files_insert_returning_record plus some more utf sanitization