mid: lib: translate characters * and / to _ in variable names