I bet fixing them manually will be a lot easier than writing a tool that does it automagically.