This prevents entity labels with special characters like apostrophes from being escaped when they are saved to log names.