UTF-8 substr fix with mb_substr()
Fix misspellings using 'codespell' tool