Fix for fatal error when encoding string such as "Restler" in Luracast\Restler\Data:: objectToArray