Fix Perl 5.16 compatibility

utf8::decode(undef) would return an empty scalar '' instead of undef.
Don't use it without an input value!

This conversion was causing fwd/rew/pause and more buttons to fail on
web UI as well as IR remote and on-device.