convert bytes to string
added prefix to err email subject