Escape '#', '$', and '\' in kickstart

Fixes https://tickets.puppetlabs.com/browse/RAZOR-205