Fixed possibility to set illegal byte/short value via char conversion