Handle file:// and // uri's