fix encoding; fix replace for other langs