title: AttributeError: '_Helper' object has no attribute 'encode'
body: <p>i connect with the client to the server when i enter <code>help</code> i get AttributeError: '_Helper' object has no attribute 'encode'</p>
  
  <p>this is the full output
  </p>
  
  <pre><code>-:-:-:-:-:Server:-:-:-:-:-
  Connection from: ('127.0.0.1', 58675)
  Your Instruction: help
  Traceback (most recent call last):
    File "serverback.py", line 36, in &lt;module&gt;
      msg = msg.encode("UTF-8")
  AttributeError: '_Helper' object has no attribute 'encode'
  </code></pre>
  
  
  
  <p>this is my python script</p>
  
  
  
  <pre><code>#imports
  import socket
  import os
  import sys
  #Variables
  port = int(sys.argv[1])
  
  #Functions
  
  def clear():
      os.system('cls' if os.name=='nt' else 'clear')
  
  #Starting Server
  serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  host = socket.gethostname()
  serversocket.bind((host, port))
  serversocket.listen(1)
  
  clear()
  print("-:-:-:-:-:Py Server:-:-:-:-:-")
  clientsocket, addr = serversocket.accept()
  print("Connection from: " + str(addr))
  while True:
      msg = input("Your Instruction: ")
  
      if msg == "help":
          clear()
          print("-+-+-+-+-+HELP+-+-+-+-+-")
          print("Test Connection: 'test'")
  
          input("\nPress ENTER to continue")
          clear()
          print("-:-:-:-:-:Py Server:-:-:-:-:-")
  
      else:
          msg = msg.encode("UTF-8")
          clientsocket.send(msg)
          msg = clientsocket.recv(4096)
          print(msg.decode("UTF-8"))
  </code></pre>