Safe Planner: Empowering Safety Awareness in Large Pre-Trained Models for Robot Task Planning