workaround for stupid ruby encoding