Hola:
 
Como te decía antes, si lo pasa mediante un formulario, se ponen bien las comillas... por ejemplo, con esta página:  
Código:
 <html>
	<head>
		<title>
			Prueba
		</title>
		<script type="text/javascript">
		</script>
	</head>
	<body >
		<form method="get" target="_blank" action="prueba.html" >
			<input type="text" name="pasar" value="'dato'" />
			<input type="submit" value="probar" />
		</form>
	</body>
</html>
  Al enviar el formulario, genera esta url: 
.../prueba.html?pasar=%27dato%27 
Como verás se incluye automáticamente el código correspondiente. 
Saludos