handle os x url quirks