Allow file arg on netrc mock

On my machine, requests is trying to access it for some reason
Properly deal with invalid filename characters

Fix #110