@browncoat - I think it's a real shame that being attacked is still a concern for female travelers, but of course it is. Even if it wasn't I would still expect people to be respectful of local forms of dress.
My best travel safety tip is something that often gets forgotten in the quest to experience strange and wonderful cultures, but believe me, you'll regret forgetting it.
Only eat food that is safe. Safe means it's been washed in bleach (if it is fresh fruits and vegetables) or it's been recently cooked to boiling point.
In a lot of countries they don't have the same laws and/or attitudes to sanitation. Every person who has touched your apple, from the person who picked it, to the person who sold it to you, could be adding their own flavor of germ to it, and if you don't make sure to wash it correctly (a rinse of water doesn't cut it!) you'll find out about that soon enough.