Endpoint decorator unicode exception

This seems to fix it.  @manthey Maybe you can suggest a test case where `repr` is needed.  It is a bit complicated by the fact that the value is an object.