if (rslen == 0) {
rsptrBytes = PARAGRAPH_SEPARATOR.unsafeBytes();
rsptr = PARAGRAPH_SEPARATOR.getBegin();
rslen = 2;
rspara = true;
fptr.swallow(context, '\n');
rs = null;
if (!enc.isAsciiCompatible()) {
rs = RubyString.newUsAsciiStringShared(runtime, rsptrBytes, rsptr, rslen);
rs = EncodingUtils.rbStrEncode(context, rs, runtime.getEncodingService().convertEncodingToRubyEncoding(enc), 0, context.nil);
rs.setFrozen(true);