Can't sleep!!!

I fall asleep just fine... But then I wake up any where between 3am and 5am and CANNOT GO BACK TO SLEEP. And I work so I can't nap. Is Unisom or Benadryl safe to take this late in the game (38 weeks)? Or any other suggestions?