Fix mac URL parsing.