libraries/Encrypt.php decode improvement

if base64 string is NO valid the result of decoded string is something like this "23Y�����������S�������i��!q"
(base64_encode(base64_decode($string)) !== $string) check is this base64 string valid
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php
index 6796092..dbe16b0 100644
--- a/system/libraries/Encrypt.php
+++ b/system/libraries/Encrypt.php
@@ -165,7 +165,7 @@
 	 */
 	public function decode($string, $key = '')
 	{
-		if (preg_match('/[^a-zA-Z0-9\/\+=]/', $string))
+		if (preg_match('/[^a-zA-Z0-9\/\+=]/', $string) || base64_encode(base64_decode($string)) !== $string)
 		{
 			return FALSE;
 		}