buffer: allow toString to accept Infinity for end