fixed validation errors: char encoding and parse mode