Handle a remainder properly.

Some spices need a proper remainder for fetching data from the apis, so we have to
validate them before sending otherwise the apis would be overcalled.
ref #122 
@mattr555 That would be good too, but probably on a separate PR. :)