fix displaying selected tab for translated tab strings.

I kill on this simplest bug almost 5 hours... 
It's not a bug on not localized tab names.
Before:
![tabs-before](https://f.cloud.github.com/assets/5244047/1648963/f244bb5e-59d4-11e3-98f1-301eca9fa307.png)
After:
![tabs-after](https://f.cloud.github.com/assets/5244047/1648964/f9f4b354-59d4-11e3-91f0-886f9b544f1a.png)
English fine too:
![tabs-after-eng](https://f.cloud.github.com/assets/5244047/1648966/0300ce56-59d5-11e3-96ef-7efbac119dc8.png)