Index: wp-includes/classes.php
===================================================================
--- wp-includes/classes.php	(revision 4957)
+++ wp-includes/classes.php	(working copy)
@@ -148,6 +148,8 @@
 				$this->query_vars[$wpvar] = $_GET[$wpvar];
 			elseif (!empty($perma_query_vars[$wpvar]))
 				$this->query_vars[$wpvar] = $perma_query_vars[$wpvar];
+
+			$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
 		}
 
 		foreach ($this->private_query_vars as $var) {

