Properly quote some parameters to sed