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.
Out of curiosity, does this test work if you remove the startServer and stopServer? If so let's remove this so it'll run faster.