title: FuelPHP form field value converts some character into HTML entities
body: <p>I have strange behavior in FuelPHP. I generate form field with FuelPHP Form::input() method. The problem is that some characters get converted into HTML entities. For example character <code>š</code> gets converted into <code>&amp;scaron;</code>. The form field generation code can be seen below and the output can be seen on the picture (the first output is just the plain html text). </p>
  
  <pre><code>&lt;?php echo $user-&gt;profile_fields['firstname']; ?&gt; 
  &lt;?php echo Form::input('firstname', Input::post('firstname', isset($user-&gt;profile_fields['firstname']) ? $user-&gt;profile_fields['firstname'] : '')); ?&gt; 
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/vilyp.png" alt="enter image description here"></p>
  
  <p>The weirdest thing is this only happens in the form field where the value is read from <code>profile_fields</code> DB field in user table (<code>$user-&gt;profile_fields['firstname']</code>). <code>Profile_fields</code> is standard MySQL text field in user table used by SimpleAuth driver. This field holds serialized key=>value pairs of user information like firstname, lastname, address and so on... If I read the same value from non-serialized field in DB and create form field with this value then it will be displayed properly.</p>
  
  <p>I use <code>utf8_unicode_ci</code> collation and encoding in my DB setup, and FuelPHP locale and encoding is also set properly to <code>UTF-8</code>. </p>
  
  <p>UPDATE1:
  take a look at this:</p>
  
  <pre><code>//values read from MySQL DB, via FuelPHP orm, unserialized
  echo $user-&gt;profile_fields['firstname'] . ' ' . $user-&gt;profile_fields['lastname'];
  echo '&lt;br&gt;';
  
  //same values serialized and assigned to PHP array var
  $test = serialize(array('firstname'=&gt;'Urška', 'lastname'=&gt;'Neumüller'));
  var_dump($test);
  
  echo '&lt;br&gt;';
  $test2 = unserialize($test);
  var_dump($test2);
  
  echo '&lt;br&gt;';
  echo '&lt;input type="text" value="'.$test2['firstname'].'"&gt;';
  echo '&lt;input type="text" value="'.$test2['lastname'].'"&gt;';
  
  echo '&lt;br&gt;';
  echo '&lt;input type="text" value="'.htmlspecialchars($test2['firstname']).'"&gt;';
  echo '&lt;input type="text" value="'.htmlspecialchars($test2['lastname']).'"&gt;';
  
  echo '&lt;br&gt;';
  echo '&lt;input type="text" value="'.$user-&gt;profile_fields['firstname'].'"&gt;';
  echo '&lt;input type="text" value="'.$user-&gt;profile_fields['lastname'].'"&gt;';
  
  echo '&lt;br&gt;';
  echo '&lt;input type="text" value="'.htmlspecialchars($user-&gt;profile_fields['firstname']).'"&gt;';
  echo '&lt;input type="text" value="'.htmlspecialchars($user-&gt;profile_fields['lastname']).'"&gt;';
  </code></pre>
  
  <p><code>htmlspecialchars</code> is used here because FuelPHP Form class use it when generating a form field and is the cause for some characters being converted into HTML entities.</p>
  
  <p>output:</p>
  
  <p><img src="https://i.stack.imgur.com/BcQVA.png" alt="enter image description here"></p>
  
  <p>Is this problem in DB, PHP, FuelPHP... I am completely lost here!</p>