Escape special characters in pre-compiled code generation

Lack of pre-compiled code escaping during its preparation caused erlang scanner to crash if some special characters were included in the template.