ruby: Fix splitting