[RawInput] Added logic to remove trailing null char from device name (#492).