added a to_dict options that return to_json with encoded=False