Fix str:align with UTF-8 strings

The offset computation for left-aligned strings containing UTF-8 was
wrong. Fixes bug #588544:

    https://bugzilla.gnome.org/show_bug.cgi?id=588544

Also add some test cases.