cocoa: fix opening reference URLs (.file/id=)

Fixes #1202

/cc @mpv-player/stable