Fix receiver:read() function.

string.sub second argument must be an index, not the length of the
substring to extract.

refs #14