add unit tests for UTF->substr() (Issue #501)

substr with negative offset returns all the remaining string whatever length is asked