[CB-4892] Fix create script only escaping the first space instead of all spaces.
(cherry picked from commit 2d88a726b7bc541a1d8f65332318ec67462aae05)