Add a couple of tests for str.center with non-ASCII chars.
#18403: fix an off-by-one typo noticed by Xue Fuqiao.