Fix problem with network byte order in secure plugin