Added URI-encoding for device-keys when sending-messages