change how UTF-8 as internal encoding is enforced
fix docs