Change character encoding error correction method

The previous method sometimes didn't catch all the encoding errors.

Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
Bump version to 0.1.2

Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>