The landlord can charge you. The lease is a legally binding contract and though I've been let out of a lease, legally twice, it was dire circumstances. In one case, I filed a restraining order against the man I moved in with, and in the second case, they didn't like that I'd written in a 2 page letter all the maintenance issues - including acrobat ants, which fly and bite
You may want to post this or the moderator may move it to the General Moving Issues forum.
Your best option is to spend every spare minute you can letting people you know (who are responsible renters) that you need someone to take over your lease.
If you are not successful, yes, your landlord can take you to court and will likely receive a judgment in his favor, because you signed for 2 years. Sorry but unless you can gain extreme empathy and get released, I don't see any other answer.
Put an ad on craigslist. Get renters in touch with your landlord and let him/her decide on the person who will take over. Best chance you have of not being sued.
Chances are he'd rather have an occupied apt with a renter than hassle through the courts and perhaps never get paid (i.e., just because there is a judgment for the money owed doesn't mean you will have the cash to pay).
Good luck.