quick and dirty fix for https://github.com/jdereg/json-io/issues/25