sterilizing ensure_prefix