[Fix #605] Url decode resource URLs and remove leading '/' from windows paths.