TaskControl: Handle ampersands in TaskName
Fixed code analysis warnings