Replace dot with underscore inside tags.