don't mangle names containing "proto" substring

replaceAll takes a regex so we should use replace for literal replacement