Matheran is quite safe for tourists. As far as solo female tourists are concerned, it is advisable that you pick the most popular hotels for your stay. The city is quite safe and you can roam about the city all alone without a worry.