Change warning message for URISyntaxException, fix canCast, add unregister