Fix converting an empty string into binary data