Bug 1079356 - Convert the apn items before storing them to the database r=gsvelto

https://bugzilla.mozilla.org/show_bug.cgi?id=1079356