Fixed #61: Add a method to make non-JSON types safe.