Using `hook_field_attach_presave` for replacing characters
hook_field_attach_presave() was removed some time ago, there's no such operation in Drupal 8. 

You can, however, use hook_entity_presave() or  hook_ENTITY_TYPE_presave() instead.