Convert paths back and forth when passing them to plugins

Because plugins should not suffer from our "genius" scheme of handling Windows
and Unix paths in the same codebase.