Using the tldexport works fine, but apparently has a problem while parsing the blogspot.com subdomain and create a mess.
If you would like to go ahead with that library, make sure to implement an if condition or something to prevent returning an empty string in the subdomain.