# File lib/ruby_parser_extras.rb, line 44 def string_to_pos string.bytes.first(pos).pack("c*").force_encoding(string.encoding) end