Don't allow histogram bins contain dots

Inspired by #410.

Excuse me for some fails, that was my first pull request on github:)