having a project with spaces.ContextLoader.getResource("xxx").toURI();
 
Exception:
 
Illegal character in path at index

--
regards,
Jun Tsai