prepare_accents is buggy, but almost there