Test for replace on UTF-8 (reported by Arnaud Calvo).