offset now works correct, by replacing #pos to #charpos in source.rb:41

thats all ;)

#charpos counts multibyte (nonASCII) chars as one,
whereas #pos counts as two
offset works now fine