Forgot one of the encode('ascii') lines