Fix url parsing for Qt 5

Relative paths are no longer treated as file urls.