Correct partitioning of octal sequences in character literals

The previous behavior was not correct because an octal sequence can
start not only with a '0' but with all signs between '0' and '7'.

Fix #1001443