Odd chars are probably due to the fact that some wordcode is not printable in ASCII characters. You should check out the log file and map non printable codes in printable ones.
yeah ok, actually I am storing it into Byte datatype buffer, and then converting it into string using tostring function, dont know how to map this data stored in Byte buffer to binary form...