Fix Ruby in custom encoder code sample