HDFS-7111. TestSafeMode assumes Unix line endings in safe mode tip. Contributed by Chris Nauroth.

(cherry picked from commit dc2ebf88a8e6fdf752b3f67933ff6c276ab90921)