fixed string to binary issue