Fix renaming labels containing non-ascii characters

Signed-off-by: Jerome Flesch <jflesch@gmail.com>