Now can handle ressources with space. Fix issue #14, fix issue #20 and fix issue #23