Added missing validation to stringToJByte (#408)