I'm working around this problem.
I'm writing the WxString from textfield into a text file and then reading from the text file when I have to assign the value to form fields in WWW::Mechanize module! This way I avoid any direct contact with WxString during assignment.