Safely get last character #296

Work around inability to lookup any character in a string by its index.
Merge pull request #347 from jonathantneal/safely-get-last-character

Safely get last character #296