Fix prompt escaping sequences