when data is long convert to string before posting

For some reason when the data is a long there is an issue in `filepost.py`

It creates the error

`TypeError: 'long' does not have the buffer interface`