diff --git a/sys/src/cmd/tcs/html.c b/sys/src/cmd/tcs/html.c
index 6d333e36e..866f158e0 100644
--- a/sys/src/cmd/tcs/html.c
+++ b/sys/src/cmd/tcs/html.c
@@ -439,7 +439,7 @@ html_in(int fd, long *x, struct convert *out)
}
continue;
out:
- if(strchr("<>&\"'", c)){
+ if((c & 0x7f) == c && strchr("<>&\"'", c)){
s = ';';
i = sprint(buf, "&%s", findbyrune(c));
goto bad;