resolves #1097 accept safe mode value in lowercase in cli, add test