Prevent replacement of {\d+} sequences in chat.format and remove stray '