Compare bytes to avoid multi-byte char problems