supply uri malformed error to the callback

should close #330