Fix receiver:read() function.

string.sub second argument must be an index, not the length of the
substring to extract.
Merge pull request #14 from ignacio/issue_14

Mock requests return wrong data when reading