fixed creating byte array out of given string