Mass modifications to use PMA_String.

All modifications of PR https://github.com/phpmyadmin/phpmyadmin/pull/1338 squashed in one commit.