Fix on Unicode.

Fix the Unicode bytes detect code.