Fixing mssql utf8 and insert empty string master

write error message to log file in case insert to file cache failed - took hours to find that the insert failed :-(

@karlitschek @Raydiation @bartv2 @icewind1991 THX