apply addslashes() to data with type=string