Update pulsedevice.cpp

Fixed encodings