add check for missing escape characters