Avoid implicit conversion errors when constructing bytes objects or passing a str object to a function that needs a bytes object. Signed-off-by: Masashi Honma <masashi.honma@gmail.com> Signed-off-by: Jouni Malinen <j@w1.fi>