Fixed unicode_literals failures in astropy.io.registry
Make sure that unicode_literals import is only added *after* encoding line, if present