Fixed the decoding of extensions

Before extensions were not getting decoded correctly if the source
address contained a period.  But now it will correctly grab the
extension if it exists