handle "resource:" better by adding or replacing to "file://"