Low-level Ruby utilities