json encode boolean `finishupload` when sending it

fixes #6