Allow prefix and postfix to have multiple parts.

Currently, a dotted prefix or postfix is converted with _ replacement.  This patch adds two new config options to allow a multi-level prefix and postfix.