Changes to make read_canonical and substring/4 work properly with UTF-8 characters.
Authored by: tswift 2014-02-07
Parent: [r7904]
Child: [r7906]