Add code to fix uppercase characters in method decode