Fix bug invalid byte sequence

Ackr crashed when it worked with invalid UTF-8