Convert fieldstorage to dict