XWIKI-11237: Cannot create an application with ^ in the name
XWIKI-11238: Space name cleanup: not for the data space, but only for the code space
* Added test

(cherry picked from commit 74ef6bd2d742f896ac704ced58005323d544d61d)