fix ruby>1.8 incompatibility due to RString

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>