bug fix - add chr escape char in mysql