parser: generate legal mangled names

Mangled names used invalid characters