Alternative to getBytes method

My phone was crashing b/c it didn't support <code>getBytes</code>. I don't think this is hte same as Rahul's login bug, but I can't seem to reproduce that one.