Well if you are 37 weeks pregnant the all symptoms are due to pregnancy. One of the reason of Charlie horse is hormonal imbalance and during pregnancy, hormones are very high. You are approaching toward labor pains but pinkish/brown discharge is not good sign at a moment. So, visit your gynecologist.