Merge pull request #15 from melloc/fmt-overflow

Protect against overflowing during OFMT/CONVFMT conversions