If your problem lies in this area it could be solved by the patch else I would suggest to capture the area in an except block and dump the variable esp the individual ordinal number's to make sure, what is passed to the Decimal is a legitimate acceptable character.