improved makeFriendly

Improved the CodeGenerator::makeFriendly function to map all characters that are
not allowed in C identifiers to escape sequences. For example, the ** operator
becomes c2Ac2A.