Force device_id to string type

device_id might look like an integer. in that case, getParam()
doesn't want to parse the param as a string for some reason (not
sure if this is by design).

This patch works around that issue.