Fixes bug with user agent when grabbing external files