Loop through substitution configuration to perform replacements.
If not too much of a performance hit, automatically select substitution sequences which do not occur in the code. Alternately, use the same patterns as hackmud itself uses when performing the script upload.