Escape resource path

This will contain backslashes on Windows