fails:IO#pread converts maxlen to Integer using #to_int
fails:IO#pread raises ArgumentError for negative values of maxlen
