bring back is_binary_data for 1.9

fixes #11