fix failing mail spec and safe_yaml warning