BUG 74: Fixed cleanResourceUrl() so that the 'file:///' base path is handled correctly