title: Android Base64 encode and decode return null in Unit Test
body: <p>I am attempting to decode a Base64 encoded string in Android using the <a href="http://developer.android.com/reference/android/util/Base64.html" rel="noreferrer">http://developer.android.com/reference/android/util/Base64.html</a> class.</p>
  
  <p>Both the encodeToString and decode methods are returning null, and I have no idea what's wrong, here's my code for the decode:</p>
  
  <pre><code>// Should decode to "GRC"
  String friendlyNameBase64Encoded = "R1JD";
  
  // This returns null
  byte[] friendlyNameByteArray = Base64.decode(friendlyNameBase64Encoded, Base64.DEFAULT);
  
  // Fails with NullPointerException
  String friendlyName = new String(friendlyNameByteArray, "UTF-8");
  </code></pre>
  
  <p>I'm running Android API 23.1.0</p>