Use QUrl::fromLocalFile for opening local files

construct QUrl from local file.
This handles special characters like #
Also it should be the same for Windows.