Update server.py

Added replacement of %20 which would cause the action to fail on my instance. Also HTML outgoing would show like "switch%20on%20light%201" instead of "switch on light 1"