Add trim for jar URIs as well