     
     
     if remainingString.hasPrefix(search) {
-      return (.value(search), index + search.lengthOfBytes(using: .utf8))
+      return (.value(search), index + search.characters.count)
     }
     
     return (.none, nil)

  private var index: Int
  
  private var stringLength: Int {
    return string.lengthOfBytes(using: .utf8)
  }
  
  private var stringIndex: String.Index {

      return (.none, nil)
    }
    
    return (.value(captured), captured.characters.count)
  }
  
  private func _peek(untilString search: String) -> (ScannerResult, Int?) {
