BUG: Fix string to uint64 conversion on 32-bit platforms

closes gh-4575