replace forbidden symbols in tags