Allow decode of characters between 1 and 3 digits long

In trying to decode the { and } characters in a string, I found an issue whereby on characters encoded using two digits, i.e. 10-99 would be decoded, whereas { and } are 123 and 125 respectively.