Update hbs_configpoke.js

Added character escaping depending on destination file type