julia option + fix scanner for rb1.9+ compatibilty

Since ruby 1.9 encoding "utf8-string:é".length differs from
"utf8-string:é".bytesize and :"[]" differs from byteslice.