Unicode regex

Binaries which contain unicode characters should specify the encoding when constructed. Otherwise, only the last byte of the encoded character will be stored in the binary.
The test is ok when I execute it... I can't reproduce the error.
What is the problem with p_advance_index?