Do not realpath relative local URLs, fixes #2916