Adds a fix and its test to handle special characters combinations and MySQL