The solution to this is easy: pirates need to learn to identify the Dutch flag. And Canada's is pretty easy to recognize too.
I think the solution is to leave other ships alone or the pirates should end up dead! It shouldn't matter what flag you're flying.