Changed/fixed the way resources are loaded from URI resources to
ClassLoaders.