Added utf-8 sanitization before dealing with database