Fixed mcrypt_encode using key with invalid size