Constantize string worker_class in client middleware

Since `worker_class` can be a String.

Fixes #12

/cc @krasnoukhov