Properly URI-encodes test results