Proper conversion of binary data only if needed