Added input encoding options