Fix RT#89817 Undefined subroutine &bytes::substr called

Thanks Andreas Koenig