XE-1298: Spaces macro doesn't list spaces that contain a colon in their name
* Fix also the xwikivars.vm template which was causing the same exception to be logged.
(cherry picked from commit dbdbcd15adb9d0cacf322ef31cd2f6bd90feb467)