Function to prevent string break in MySql insert