diff --git a/lib/ruby_fs/lexer.rb b/lib/ruby_fs/lexer.rb
index <HASH>..<HASH> 100644
--- a/lib/ruby_fs/lexer.rb
+++ b/lib/ruby_fs/lexer.rb
@@ -46,8 +46,8 @@ module RubyFS
         needed = @textsize - @textpos
         will_take = data.length > needed ? needed : data.length
 
-        @textbuffer << data.byteslice(0...will_take)
-        tail = data.byteslice(will_take..-1)
+        @textbuffer << data[0...will_take]
+        tail = data[will_take..-1]
 
         @textpos += will_take
         if @textpos >= @textsize
[BUGFIX] Don't use #byteslice

* Only available in <I>
* Turns out we don't need it anyway