Fix Safari detection for file transfers

@arlolra, take note. Chrome's user agent includes a 'Safari' string too
(Chrome is originally a fork of Safari).

Otherwise your commit seems to work fine, unbelievably.