fix string comparison to use unsigned bytes