Strip spaces from resource URLs