Removes null bytes from url prior to passing to fs

This will prevent a error being thrown from fs when a null byte is sent in the url.