Added an encoder to dumps method (allow Decimal values)